package com.nanhai.buddhist.college.module.study.controller.admin.classclockrecord.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import java.util.*;
import io.swagger.annotations.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static com.nanhai.buddhist.college.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
* 打卡记录 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class ClockRecordBaseVO {

    @ApiModelProperty(value = "上课时间ID", required = true)
    @NotNull(message = "上课时间ID不能为空")
    private Integer studyTimeId;

    @ApiModelProperty(value = "星期", required = true)
    @NotNull(message = "星期不能为空")
    private Integer weekId;

    @ApiModelProperty(value = "班级ID")
    private String classesId;

    @ApiModelProperty(value = "课程ID")
    private String subjectId;

    @ApiModelProperty(value = "教室信息")
    private String roomId;

    @ApiModelProperty(value = "打卡时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = "GMT+8")
    private Date clockTime;

    @ApiModelProperty(value = "打卡类型")
    private String clockType;

    @ApiModelProperty(value = "打卡角色")
    private Integer clockRole;

    @ApiModelProperty(value = "打卡人id")
    private String clockUserId;

    @ApiModelProperty(value = "帮打卡人id")
    private String helpClockId;

    @ApiModelProperty(value = "帮打卡人角色类型")
    private String helpClockRole;

    @ApiModelProperty(value = "基准时间")
    private String standardTime;

    @ApiModelProperty(value = "打卡备注")
    private String clockRemark;

    @ApiModelProperty(value = "打卡结果（1正常;2异常）")
    private String  clockStatus;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "上课 或者 下课  1 = 上课  ，  2 = 下课")
    private  Integer upDown;

}
